<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Gabriel Par&iacute;s</title>
<link href="files/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript">
       jQuery(document).ready(function() { 
           			
		
            jQuery('#username').focus();
              //  $('#password').click(function() {
      // $('#username').focus();
     // });	
			
        }); 
function validar(e) {
  tecla = (document.all) ? e.keyCode : e.which;
  if (tecla==13) alert ('Has pulsado enter');
}	   
 </script>
</head>
<body>
<div id="container" style="display:block;">
  <div class="title">
    <div align="center">Administracion Gabriel Par&iacute;s</div>
  </div>
  <form  method="post" action="login.php">
    <ul>
      <li class="label"> Usuario</li>
      <li class="field">
        <input name="username" type="text" id='username' class="text"/>
      </li>
      <li class="label"> Password</li>
      <li class="field">
        <input name="password" type="password" class="text" id="password" />
      </li>
      <li class="label"> </li>
      <li class="field"> <img src="files/isubmit.jpg" class="submit" onclick="jQuery('#btnSubmit').click();"/>
        <input name="submit" type="submit" id='btnSubmit' style="display:none" />
      </li>
      <?php

	  if(isset( $_GET['err'])){  ?>     
      <li class="invalid_message">
        <div class="ajax_notify" style=" clear:both"> 
          Error : Usuario o Password incorrecto. Por favor, intente nuevamente.
          <!--don't delete this div class="ajax_notify"-->
        </div>
      </li>
      <?php } ?>
      <li class="label status"> 
        <span class="ajax_wait">
        <!--don't delete this span class="ajax_wait"-->
        </span> </li>
    </ul>
    <div class="ajax_target">
      <!--don't delete this div class="ajax_target" -->
    </div>
  </form>
   
</div>
</body>
</html>
